<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>E-Greeting: Fill the required data in your greeting</title>
</head>
<body bgcolor="#99FFCC">
<%@include file="messages.jsp" %>
<form name="greetingForm" action="VnSGreetingServlet" method="post" >
<table border="0">
<tr>
<td>Greeting title</td>
<td><input type="text" name="title" value="${greetingTemplate._title}" /></td>
</tr>
<tr>
<td>Sender name or nickname</td>
<td><input type="text" name="senderName" value="${greetingTemplate._senderName}" /></td>
</tr>
<tr>
<td>Recipient E-Mail</td>
<td><input type="text" name="recipientEmail" value="${greetingTemplate._recipientEmail}" /> </td>
</tr>
<tr>
<td>Recipient name or nickname</td>
<td><input type="text" name="RecipientName" value="${greetingTemplate._recipientName}" /></td> 
<td><input type="submit" name="searchByName" value="Search" /><font size="3" color="red">*</font></td>
</tr>
<tr>
<td>Blessing</td>
<td><input type="text" name="blessing" value="${greetingTemplate._blessing}" /></td>
</tr>
<tr>
<td>Personal blessing</td>
<td><input type="text" name="personalBlessing" value="${greetingTemplate._personalBlessing}" /></td>
</tr>
<tr>
<td>Background image</td> 
<td><select name="backImage"> 
<jsp:include page="selectableProperties.jsp">
	<jsp:param name="propName" value="backImages"/>
	<jsp:param name="selectedName" value="${greetingTemplate._backgroundImage}"/>
</jsp:include>
</select></td>
</tr>
<tr>
<td>Foreground image</td> 
<td><select name="foreImage"> 
<jsp:include page="selectableProperties.jsp">
	<jsp:param name="propName" value="foreImages"/>
	<jsp:param name="selectedName" value="${greetingTemplate._greetingImage}"/>
</jsp:include>
</select></td>
</tr> 
<tr>
<td>Background Music</td>
<td><select name="backMusic" > 
<jsp:include page="selectableProperties.jsp">
	<jsp:param name="propName" value="backMusics"/>
	<jsp:param name="selectedName" value="${greetingTemplate._backgroundSound}"/>
</jsp:include>
</select></td>
</tr>
</table>
<br/>
<input type="submit" name="send" value="Send Greeting" onclick="javascript:greetingForm.target='${ destTarget }'" />
<input type="submit" name="preview" value="Preview" />
<input type="submit" name="cancel" value="Cancel" onclick="javascript:greetingForm.target='${ destTarget }'" />
<br/><br/></br>
<font size="5" color="red">*</font>
You can enter either a part of the recipient's first or last name 
</form>
</body>
</html>